/*
 * UnaryOperatorAst.cpp
 *
 *  Created on: 28 Oct 2010
 *      Author: kn308
 */

#include <MAlice/Ast/UnaryOperatorAst.h>
#include <MAlice/Parser/location.hh>

namespace MAlice
{

UnaryOperatorAst::UnaryOperatorAst(location loc, const string& operatorName,
		ExpressionAst* operand) :
	OperatorAst(loc, operatorName), mOperand(operand)
{
	MALICE_TRACE;
	assert (operand != NULL && "NullPointer: operand");
}

UnaryOperatorAst::~UnaryOperatorAst()
{
	MALICE_TRACE;
}

ExpressionAst* UnaryOperatorAst::getLHS() 
{
	return mOperand;
}

}
